<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateBoxGiftboxitemsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('box_giftboxitems', function (Blueprint $table) {
            $table->increments('id');
            $table->string('title')->nullable()->comment('礼盒标题');
            $table->string('image')->nullable()->comment('礼盒图片');
            $table->string('details')->nullable()->comment('礼盒介绍');
            $table->decimal('money')->nullable()->comment('金额');
            $table->string('class')->nullable()->comment('班级');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('box_giftboxitems');
    }
}
